home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2006 October / wn148cd2.iso / Windows / Communiquer / Power IE6 / PowerIE.msi / Instal01.cab / PO1_26D9BC7BA46640168FA3154A84EC56DB_DDCE2CEA36F346178DA1F6847A62A7D7 / 2060 / HTML / SHOWCOOKIES
Text File  |  2004-12-18  |  3KB  |  86 lines

  1. <html>
  2.     <body>
  3.         <h3 align="center">Ce document ne doit pas Ωtre ouvert directement!</h3>
  4.         <p align="center">Utiliser le menu contextuel <b>"Enregistrer la cible sous..."</b></p>
  5.         <script language="javascript" defer>
  6.         <!--
  7.             var win = external.menuArguments;
  8.             
  9.             if (win!=null)
  10.             {
  11.                 var doc = win.document;
  12.                 var mywin = window.open("about:blank", "cookies" , 
  13.                                         "toolbar=no,location=no,menubar=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=350'");
  14.                 var myDoc = mywin.document;
  15.                 myDoc.open("text/html");
  16.                 mywin.doc = doc;
  17.                 mywin = null;
  18.                 myDoc.write("<HTML>\n");
  19.                 myDoc.write("<STYLE>\n");
  20.                 myDoc.write("body {font-family: Verdana, Arial, Helvetica;font-size: 8 pt \n");
  21.                 myDoc.write("h1, h2, h3, h4, h5, h6 { font-family: Verdana }\n");
  22.                 myDoc.write("table {table-border-color-light: rgb(102,204,204);table-border-color-dark:  rgb(0,102,102); \n");
  23.                 myDoc.write("font-size: 8 pt;font-family: Verdana }\n");
  24.                 myDoc.write("</STYLE>\n");
  25.                 myDoc.write("<BODY>\n");
  26.                 
  27.                 for (szProp in doc) 
  28.                 {
  29.                     if (szProp=="cookie")
  30.                     {
  31.                         myDoc.write("<h1><img src=http://www.technicland.com/images/powerie6/power.gif >PowerIE6");
  32.                         myDoc.write("<h4>Cookies gΘnΘrΘs par:</h4>\n");
  33.                         myDoc.write("<h5>"+ win.location.href+" :</h5>\n");
  34.                         var oCookies = doc[szProp];
  35.                         debut=0;
  36.                         fin=oCookies.length;
  37.                         allCook="";
  38.                         if (fin>0)
  39.                         {
  40.                             allCook0="<table border=\"1\"><TR><TD bgcolor=\"#C0C0C0\"><b>Nom</b></TD><TD bgcolor=\"#C0C0C0\"><b>Valeur</b></TD></TR>\n";
  41.                             allCook2="</table>\n";
  42.                             courant="";
  43.                             while (debut<fin)
  44.                             {
  45.                                 pv=oCookies.indexOf(";",debut);
  46.                                 if (pv<debut)
  47.                                 {
  48.                                     pv=fin;
  49.                                 }
  50.                                 courant=unescape(oCookies.substring(debut,pv));
  51.                                 pe=courant.indexOf("=",0);
  52.                                 nom=courant.substring(0,pe);
  53.                                 valeur=courant.substring(pe+1);
  54.                                 allCook=allCook+"<TR><TD>"+nom+"</TD><TD>"+valeur+"</TD></TR>\n";
  55.                                 debut=pv+1;
  56.                             }
  57.                         }
  58.                     
  59.                         try
  60.                         {
  61.                             if (allCook.length>0)
  62.                             {
  63.                                 allCook=allCook0+allCook+allCook2;
  64.                             }
  65.                             else
  66.                             {
  67.                             allCook="<h3>aucun cookie</h3>";
  68.                             }
  69.                         }
  70.                         catch(e)
  71.                         {
  72.                             allCook="aucun cookie";
  73.                         }
  74.                     
  75.                         myDoc.write(allCook);
  76.                     }
  77.                 }
  78.                 myDoc.write("</BODY>\n");
  79.                 myDoc.write("</HTML>\n");
  80.                 myDoc.close();
  81.                 myDoc.title = "Cookies gΘnΘrΘs par : " + win.location.href;
  82.             }// -->
  83.         </script>
  84.     </body>
  85. </html>
  86.